package com.edu.service;

import com.edu.beans.Home;
import com.edu.exception.UsedException;

import java.util.List;

public interface HomeService {
    int addHome(Home home);

    int deleteHomeById(int id) throws UsedException;

    int updateHome(Home home);

    Home getHomeById(int id);

    List<Home> getAllHomeByNum(String num);

    List<Home> getHomeByState(String state);
}
